import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/create_order_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/create_order_entity.g.dart';

@JsonSerializable()
class CreateOrderEntity {
	String? msg;
	int? code;
	CreateOrderData? data;

	CreateOrderEntity();

	factory CreateOrderEntity.fromJson(Map<String, dynamic> json) => $CreateOrderEntityFromJson(json);

	Map<String, dynamic> toJson() => $CreateOrderEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CreateOrderData {
	String? createTime;
	CreateOrderDataParams? params;
	int? id;
	String? orderNo;
	int? orderType;
	String? orderTitle;
	double? orderAmount;
	int? status;
	String? serialNumber;
	int? memberLevelId;

	CreateOrderData();

	factory CreateOrderData.fromJson(Map<String, dynamic> json) => $CreateOrderDataFromJson(json);

	Map<String, dynamic> toJson() => $CreateOrderDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CreateOrderDataParams {


	CreateOrderDataParams();

	factory CreateOrderDataParams.fromJson(Map<String, dynamic> json) => $CreateOrderDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $CreateOrderDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}